using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.BGM
{
    [Table("bgm_request_contract"), DataContract]
    public class RequestContract
    {

        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember, Display(Name = "BgmReqContractId", ResourceType = typeof(Resources.RequestContractResource))]
        [Column("bgm_req_contract_seq", TypeName="int")]
        public int BgmReqContractId { get; set; }

        [ForeignKey("BgmReqExp")]
        [DataMember, Display(Name = "BgmReqExpId", ResourceType = typeof(Resources.RequestContractResource))]
        [Column("bgm_req_exp_seq", TypeName="int")]
        public Nullable<int> BgmReqExpId { get; set; }

        [DataMember, Display(Name = "BgmYear", ResourceType = typeof(Resources.RequestContractResource))]
        [Column("bgm_year", TypeName="int")]
        public Nullable<int> BgmYear { get; set; }

        [DataMember, Display(Name = "Amount", ResourceType = typeof(Resources.RequestContractResource))]
        [Column("amount", TypeName="int")]
        public Nullable<int> Amount { get; set; }

        [DataMember]
        public virtual RequestExpense BgmReqExp { get; set; }

    }
}